//
//  UIButton+BaseAttributes.h
//  MonitoringNetwork
//
//  Created by admin on 2017/12/5.
//  Copyright © 2017年 wtmcxlm. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (BaseAttributes)



/// j简单初始化
/// @param title 文字
/// @param normalTitleColor 字体常规颜色
/// @param selectTitleColor 字体选中颜色
/// @param titlefont 文字大小
+ (UIButton *)buttonWithTitle:(NSString *)title
         normalTitleColor:(UIColor *)normalTitleColor
                 selectTitleColor:(UIColor *)selectTitleColor
                   titleFont:(UIFont *)titlefont;


/// 初始化
/// @param title 文字
/// @param normalTitleColor 字体常规颜色
/// @param selectTitleColor 字体选中颜色
/// @param normalImage 常规图片
/// @param selectImage 选中图片
/// @param titlefont 文字大小
+ (UIButton *)buttonWithTitle:(NSString *)title
             normalTitleColor:(UIColor *)normalTitleColor
             selectTitleColor:(UIColor *)selectTitleColor
              normalImage:(UIImage *)normalImage
              selectImage:(UIImage *)selectImage
                   titleFont:(UIFont *)titlefont;


///  初始化
/// @param title 字体
/// @param font 文字大小
/// @param normalTitleColor 字体常规颜色
/// @param selectTitleColor 字体选中颜色
/// @param normalBackgoundImage 常规背景图片
/// @param selectedBackgoundImage 常规选中图片
+ (UIButton *)buttonWithTitle:(NSString *)title
                    titleFont:(UIFont *)font
             normalTitleColor:(UIColor *)normalTitleColor
           selectedTitleColor:(UIColor *)selectTitleColor
         normalBackgoundImage:(UIImage *)normalBackgoundImage
       selectedBackgoundImage:(UIImage *)selectedBackgoundImage;



/// 设置按钮UI
/// @param cornerRadius 圆角半径
/// @param borderWidth 线宽
/// @param borderColor 线颜色
- (void)buttonWithCornerRadius:(CGFloat)cornerRadius
                borderWidth:(CGFloat)borderWidth
                borderColor:(UIColor*)borderColor;




/// 设置按钮背景色
/// @param backgroundColor 背景色
/// @param state 状态
- (void)setBackgroundColor:(UIColor *)backgroundColor
                  forState:(UIControlState)state;
@end

